package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.domain.db.UserInfo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserInfoMapper extends BaseMapper<UserInfo> {
    @Select("SELECT * FROM tb_user_info ORDER BY RAND() LIMIT #{i}")
    List<UserInfo> randomInfo(int i);
}
